package frsf.cidisi.exercise.tp2_ia.situationCalculus.actions;

import frsf.cidisi.exercise.tp2_ia.situationCalculus.EstadoAgente;
import frsf.cidisi.exercise.tp2_ia.situationCalculus.EstadoAmbiente;
import frsf.cidisi.faia.agent.situationcalculus.SituationCalculusAction;
import frsf.cidisi.faia.state.AgentState;
import frsf.cidisi.faia.state.EnvironmentState;

public class Propose_UpdatedDemForecast extends SituationCalculusAction {

    @Override
    public EnvironmentState execute(AgentState ast, EnvironmentState est) {
        
    	EstadoAmbiente environmentState = (EstadoAmbiente) est;
    	environmentState.setposicionAgente(EstadoAgente.UPDATED_DEMAND_FORECAST_SENT);
        
        return est;
    }

    @Override
    public String toString() {
        return "proposeUpdatedDemandForecast";
    }
}

